home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11023 < prev    next >
Encoding:
Text File  |  1996-08-05  |  724 b   |  37 lines

  1. Path: antoniades.lcs.mit.edu!frankkim
  2. From: frankkim@antoniades.lcs.mit.edu (Frank Kim)
  3. Newsgroups: comp.lang.c
  4. Subject: Newbie Questions
  5. Date: 21 Mar 1996 14:33:37 GMT
  6. Organization: MIT Laboratory for Computer Science, Cambridge MA
  7. Message-ID: <4irpc1$b8u@GRAPEVINE.LCS.MIT.EDU>
  8. NNTP-Posting-Host: antoniades.lcs.mit.edu
  9.  
  10.  
  11. Question #2
  12.  
  13. Why does the scope of the external declaration not extend beyond the
  14. inner block?
  15.  
  16. {
  17.     {
  18.         extern E;
  19.         E = 0;
  20.     }
  21.     E = 1;
  22. }
  23.  
  24. Question #3
  25.  
  26. Is there any difference between these two declarations?
  27.  
  28.    char *s1 = "hello";
  29.    char s2[] = "hello";
  30.  
  31.  
  32. Thanks for any help!
  33. -- 
  34. Frank Kim    frankkim@catfish.lcs.mit.edu
  35.         http://cag-www.lcs.mit.edu/~frankkim/
  36.                    
  37.